package org.giovanolli.mumi.view.validator;

import org.giovanolli.mumi.controller.geo.RegionModel;
import org.giovanolli.mumi.entities.Region;
import org.giovanolli.mumi.entities.filter.EntityFilter;
import org.giovanolli.mumi.entities.filter.RegionFilter;
import org.giovanolli.mumi.service.RegionService;
import org.giovanolli.mumi.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The Class RegionModelValidator.
 */
@Component
public class RegionModelValidator extends AbstractViewStateModelValidator<Region, RegionModel> {

	/** The region service. */
	@Autowired
	private RegionService regionService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getFilter()
	 */
	@Override
	public EntityFilter<Region> getFilter() {
		return new RegionFilter();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getService()
	 */
	@Override
	public Service<Region> getService() {
		return regionService;
	}

}